package com.ssx.cloud.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ssx.cloud.entity.Admin;
import com.ssx.cloud.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Package com.ssx.cloud.service
 * @ClassName FeignService
 * @Copyright: Copyright (c) 2020
 * @Date 2020/11/20 19:48
 * @Company www.sudaoxi.com.cn
 * @Author 苏道羲
 * @Version 1.0
 * @Description
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface FeignService {

    @GetMapping(value = "/admin/get/{id}")
    public CommonResult<Admin> getById(@PathVariable("id") Integer id);
}
